package map.beans;

import java.util.List;

public class SchemaBean {

	String title;
	String type;
	List<SchemaProperty> properties;
	List<String> required;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}



	public List<SchemaProperty> getProperties() {
		return properties;
	}

	public void setProperties(List<SchemaProperty> properties) {
		this.properties = properties;
	}

	public List<String> getRequired() {
		return required;
	}

	public void setRequired(List<String> required) {
		this.required = required;
	}

	public static class SchemaProperties {
		List<SchemaProperty> properties;

		public List<SchemaProperty> getProperties() {
			return properties;
		}

		public void setProperties(List<SchemaProperty> properties) {
			this.properties = properties;
		}

	}

	public static class SchemaProperty {
		String name;
		String type;
		String label;
		String defaultValue;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getLabel() {
			return label;
		}

		public void setLabel(String label) {
			this.label = label;
		}

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		public String getDefaultValue() {
			return defaultValue;
		}

		public void setDefaultValue(String defaultValue) {
			this.defaultValue = defaultValue;
		}

	}

}

/*{	
"title": "Google Earth Enterprise Configuration",
"type" : "object",
"properties": {
	"baseUrl": {
		"type": "text",
		"title": "Base URL",
		"default": "http://localhost:8080/gee.com/earth"
	},
	"enterpriseKey": {
		"type": "text",
		"title": "Enterprise Key",
		"default": "ABCDEFGHIJKEY_demo"
	}
},
"required" : ["baseUrl", "enterpriseKey"]
}*/